package br.com.news.database.utils.interfaces;

import java.io.Serializable;
import java.util.List;

import br.com.news.database.exception.DataBaseException;
import br.com.news.database.utils.BaseEntity;

public interface IGenericDao <T extends BaseEntity, ID extends Serializable>{

	T findById(ID id) throws DataBaseException;
	List<T> findAll() throws DataBaseException;
	ID save(T entity) throws DataBaseException;
	void update(T entity) throws DataBaseException;
	void delete(T entity) throws DataBaseException;

}
